﻿using Dora.Orm.Core.Domain.Entities;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Dora.Services.AdminUser.Entities
{
    /// <summary>
    /// 美程用户表实体对象
    /// </summary>
    [SugarTable("dora_user")]
    public class DoraUserEntity : Entity<Guid>
    {
        #region model


        /// <summary>
        /// 用户名;如果非空，必须唯一
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 密码加盐
        /// </summary>
        public string PasswordSalt { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile { get; set; }

        /// <summary>
        /// 手机号是否验证
        /// </summary>
        public short MobileIsVerified { get; set; }

        /// <summary>
        /// Email
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// Email是否验证
        /// </summary>
        public short EmailIsVerified { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }

        /// <summary>
        /// 性别;0未知1男2女
        /// </summary>
        public int Sex { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        public string IDCardNO { get; set; }

        /// <summary>
        /// 排序;倒序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        public short IsDisabled { get; set; }

        /// <summary>
        /// 是否冻结
        /// </summary>
        public short IsFrozen { get; set; }

        /// <summary>
        /// 是否超级管理员
        /// </summary>
        public short IsSuperAdmin { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 是否被删除
        /// </summary>
        public short IsDeleted { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public Guid? CreatedUserId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreatedUserName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 更新人Id
        /// </summary>
        public Guid? UpdatedUserId { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string UpdatedUserName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedTime { get; set; }

        #endregion
        #region extend
        #endregion
    }
}
